<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>vue-markdown-it-toc example</title>
  <style>
    #app {
      width: 1140px;
      margin: 0 auto;
      padding-right: 165px;
      box-sizing: border-box;
    }
  </style>
</head>
<body>
  <div id="app">
    <markdown-it-toc class="markdown-it-wrap"
      :content="content"
      :offset="21"
      :level="3">
    </markdown-it-toc>
  </div>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.9/vue.min.js"></script>
  <script src="../dist/index.js"></script>
  <script>
    new Vue({
      el: '#app',
      data() {
        return {
          content: '[[toc]]\n# Heading\n## Sub heading 1\n - 1 Some nice text\n### Sub heading 2\n - 2 Some even nicer text\n```js\nconsole.log("hellow, world")\n```\n# Heading3\n## Sub heading 4\n - 1 Some nice text\n### Sub heading 5\n - 2 Some even nicer text\n```js\nconsole.log("hellow, world")\n```\n# Heading 6\n## Sub heading 7\n - 1 Some nice text\n### Sub heading 8\n - 2 Some even nicer text\n```js\nconsole.log("hellow, world")\n```\n# Heading 9\n## Sub heading 10\n - 1 Some nice text\n### Sub heading 11\n - 2 Some even nicer text\n```js\nconsole.log("hellow, world")\n```\n# Heading 12\n## Sub heading 13\n - 1 Some nice text\n### Sub heading 14\n - 2 Some even nicer text\n```js\nconsole.log("hellow, world")\n```\n# Heading 15\n## Sub heading 16\n - 1 Some nice text\n### Sub heading 17\n - 2 Some even nicer text\n```js\nconsole.log("hellow, world")\n```\n# Heading 18\n## Sub heading 19\n - 1 Some nice text\n### Sub heading 20\n - 2 Some even nicer text\n```js\nconsole.log("hellow, world")\n```\n'
        }
      }
    })
  </script>
</body>
</html>
